package com.lq.ecoldchain.ui.recharge

import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2019/1/18 0018  11:31
*function by lq
*/
val recharegeKodeinModule = Kodein.Module("Recharge_Kodein_Module"){
    bind<RechargeViewModel>() with scoped(AndroidLifecycleScope).singleton {
        RechargeViewModel()
    }
    bind<RechargeDelegate>() with scoped(AndroidLifecycleScope).singleton {
        RechargeDelegate(instance())
    }
}